<?php
/**
 * Created by PhpStorm.
 * User: XYX
 * Date: 2017/9/5
 * Time: 10:54
 */

namespace App\Api\Transformers;


use App\Clubclass;
use League\Fractal\TransformerAbstract;

class ClubClassTransformer extends TransformerAbstract
{
    public function transform(Clubclass $item)
    {
        return
            [
                'class_id'=>$item['id'],
                'title'=>$item['title'],
                'cover_image'=>$item['cover_image'],
                'likes_count'=>$item['likes_count'],
            ];
    }
}